//// Source code recreated from a .class file by IntelliJ IDEA// (powered by FernFlower decompiler)//package 力扣.题库.未分类.demo60AND80;public class demo69 {    public demo69() {    }    public int mySqrt(int x) {        if (x == 0) {            return 0;        } else {            int left = 0;            int right = x;            int mid = 0;            while(left <= right) {                mid = (left + right) / 2;                if ((long)mid * (long)mid == (long)x) {                    return mid;                }                if ((long)mid * (long)mid < (long)x) {                    left = mid + 1;                } else if ((long)mid * (long)mid > (long)x) {                    right = mid - 1;                }            }            if (mid * mid > x) {                return mid - 1;            } else {                return mid;            }        }    }}